<template>
  <div class="container">
    <el-button class="btn" type="primary" @click="logout">退出登录</el-button>
  </div>
</template>

<script>
export default {
  name: "setMeau",
  methods: {
    logout() {
      localStorage.removeItem("userMsg");
      this.$router.push("/home");
    },
  },
};
</script>
<style lang="less" scoped>
.container{
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn {
  margin-top: 300px;
}
</style>